package com.briup.springboot_mybatisplus.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author briup
 * @since 2023-07-17
 */
//@Data=@ToString+@Getter+@Setter
@ToString
@Getter// 生成 get方法
@Setter //生成set方法
@Accessors(chain = true)//开启链式调用
@TableName("smart_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;
    //当属性对应主键时，@TableId表示 主键值通过自增方式实现
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private LocalDateTime dob;

    private String email;

    private Integer score;
}
